<?php
class config {
	
	// actual config
	public $sitename = "SciBase";
	public $default = array(
		"module" => "default",
		"action" => "show",
		"format" => "page"
		);
	public $debug = true;
	public $useicons = true;
	public $lang = "en";
	public $style = "default";
	
	// db
	public $db_host = "localhost";
	public $db_user = "scibase";
	public $db_password = "scibase";
	public $db_db = "scibase";
	
	// some vars
	public $site_root; 
	
	function __construct() {
		$this->site_root = $_SERVER["DOCUMENT_ROOT"].str_replace("/index.php", "", $_SERVER["PHP_SELF"]);		
	}
	
	/**
	 * 
	 * @return config 
	 */
	static function getInstance() {
		static $instance;
		if (empty($instance)) {
			$instance = new config();
		}
		return $instance;
	}
}
?>